/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kimstore.utilities;

import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author Administrator
 */
public class QueryElements {

    private HashMap<Object, Object> parameters = new HashMap<Object, Object>();
    private ArrayList<String> attributes = new ArrayList<String>();
    private ArrayList<String> variables = new ArrayList<String>();
    private ArrayList<String> strictAttributes = new ArrayList<>();
    private String searchAttribute = null;
    private String searchValue = null;
    private String orderByColumn = null;
    private String orderByOrder = null;
    private String query = null;
    private final String className;
    private final String classVariable;

    public QueryElements(String className, String classVariable) {
        this.className = className;
        this.classVariable = classVariable;
    }

    public ArrayList<String> getAttributes() {
        return attributes;
    }

    public String getSearchAttribute() {
        return searchAttribute;
    }

    public void setSearchAttribute(String searchAttribute) {
        this.searchAttribute = searchAttribute;
    }

    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getClassName() {
        return className;
    }

    public String getClassVariable() {
        return classVariable;
    }

    public HashMap<Object, Object> getParameters() {
        return parameters;
    }

    public void setParameters(HashMap<Object, Object> parameters) {
        this.parameters = parameters;
    }

    public void clear() {
        this.attributes.clear();
        this.orderByColumn = null;
        this.parameters.clear();
        this.searchAttribute = null;
        this.searchValue = null;
        this.query = null;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getOrderByOrder() {
        return orderByOrder;
    }

    public void setOrderByOrder(String orderByOrder) {
        this.orderByOrder = orderByOrder;
    }

    public ArrayList<String> getVariables() {
        return variables;
    }

    public void setVariables(ArrayList<String> variables) {
        this.variables = variables;
    }

    public ArrayList<String> getStrictAttributes() {
        return strictAttributes;
    }

    public void setStrictAttributes(ArrayList<String> strictAttributes) {
        this.strictAttributes = strictAttributes;
    }
}
